<template>
    <div class="home">
        <div class="head">
            <div class="toutu">
                <img src="@/assets/img/shouye-bg.png" alt="头图" />
            </div>
        </div>
        <router-link to="/cardpass">
            <div class="open-btn" @click="openPage">
                <span>马上提货</span>
                <img src="@/assets/img/tihuo-icon.png" />
            </div>
        </router-link>

        <div class="footer">
            <div class="con">
                <img src="@/assets/img/xiaopang.png" />
                <span>小胖发货系统 1.1.0</span>
            </div>
        </div>
    </div>
</template>



<script lang="ts" setup>
import { ref, onMounted, nextTick } from 'vue';
const page = ref(0);
const openPage = () => {
    page.value = 1;
}
</script>

<style lang="less">
.home {
    height: 100vh;
    background: #df3030 url("@/assets/img/bg.png") no-repeat center center;
    background-size: 100% 100%;
}

.head {
    padding: 60px 48px 45px 60px;
    box-sizing: border-box;
}
.open-btn {
    width: 286px;
    height: 56px;
    background: #ffffff;
    box-shadow: 0px 20px 40px 0px rgba(223, 48, 48, 0.05);
    border-radius: 33px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    span {
        display: inline-block;
        width: 64px;
        height: 21px;
        font-size: 16px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 700;
        color: #10242c;
        line-height: 21px;
        margin-right: 10px;
    }
    img {
        width: 20px;
        height: 17px;
    }
}

.toutu {
    width: 100%;
    height: 100%;
    img {
        width: 100%;
        height: 100%;
        display: block;
    }
}

.footer {
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 18px;
    .con {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        img {
            width: 30px;
            height: 30px;
        }

        span {
            display: inline-block;
            height: 18px;
            font-size: 13px;
            font-family: PingFangSC-Semibold, PingFang SC;
            font-weight: 600;
            color: #ffffff;
            line-height: 18px;
            margin-left: 10px;
        }
    }
}
</style>